package grpc

import (
	"context"
	"fmt"

	"core/grpc/account"
)

type Account struct {
	account.UnimplementedGreeterServer
}

func (a Account) SayHello(ctx context.Context, in *account.HelloRequest) (*account.HelloResponse, error) {
	return &account.HelloResponse{Message: fmt.Sprintf("Hello, %s!", in.Name)}, nil
}
